<?php

use yii\helpers\Html;
//use yii\grid\GridView;
use kartik\grid\GridView;
use yii\widgets\Pjax;
/* @var $this yii\web\View */
/* @var $searchModel common\models\ContactSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */

$this->title = Yii::t('app', 'Contacts');
$this->params['breadcrumbs'][] = $this->title;
?>
<link rel="stylesheet" href="/static/css/gridview.css">
<div class="contact-index">

    
    <?php Pjax::begin(); ?>
    <?php echo $this->render('_search', ['model' => $searchModel]); ?>

    <?= GridView::widget([
        'dataProvider' => $dataProvider,
        //'filterModel' => $searchModel,
        'columns' => [
            'id',
            'name',
          //  'number',
            //'taxRate',
            //'amount',
            //'periodMoney',
            //'difMoney',
            //'beginDate',
            //'remark',
            //'linkMans:ntext',
            //'type',
            //'contact',
            //'cLevel',
            //'cLevelName',
            //'pinYin',
            //'disable',
            //'isDelete',
            //'admin_id',
            //'created_at',
            //'updated_at',

            ['class' => 'yii\grid\ActionColumn'],
        ],
    ]); ?>
    <?php Pjax::end(); ?>
</div>
